﻿<%@ Page  Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FormManager.aspx.cs" Inherits="InventoryProject.Setting.FormManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<meta  http-equiv="Content-Type" content="text/html;  charset=utf-8" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="editform">    
        <ul>
            <li>
                <div class="divColumn">
                    <label class="label">FormID</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtFormID" class="textbox"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="txtID" />
                </div>
                <div class="divColumn">
                    <label class="label">Tên form</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtFormNm" Width="200px" class="textbox"></asp:TextBox>
                </div>
                             
                <div class="clear"></div>
            </li>
            <li>
                 <div class="divColumn">
                    <label class="label">Module</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtModuleID" class="textbox"></asp:TextBox>
                </div>
                <div class="divColumn">
                    <label class="label">Đường dẫn</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtFilePath" Width="200px" class="textbox"></asp:TextBox>
                </div>   
               
                <div class="clear"></div>
            </li>
            <br />
            <div class="editbutton">
                <asp:Button runat="server" class="button" ID="btnSave" Text="Lưu" 
                    onclick="btnSave_Click" />
                <asp:Button runat="server" class="button" ID="btnClear" Text="Clear" 
                    onclick="btnClear_Click" />
            </div>
            <br />
            <asp:GridView ID="grdData" runat="server" AutoGenerateColumns="false" DataKeyNames="ID"
                    AllowSorting="true" AllowPaging="true" PageSize="5" 
                    PagerSettings-Mode="NextPreviousFirstLast" 
                    onrowcommand="grdData_RowCommand" onrowdeleting="grdData_RowDeleting"                      
                     onrowdatabound="grdData_RowDataBound">
            <HeaderStyle BackColor="AliceBlue" />
            <Columns>                
                <asp:BoundField HeaderText="Mã hệ thống" DataField="ID" Visible="false"/>
                <asp:BoundField HeaderText="FormID" DataField="FormID" HeaderStyle-Width="100px" />
                <asp:BoundField HeaderText="Tên Form" DataField="FormNm" HeaderStyle-Width="140px" />
                <asp:BoundField HeaderText="Đường dẫn" DataField="FilePath" HeaderStyle-Width="160px" />
                <asp:BoundField HeaderText="Module" DataField="ModuleID" HeaderStyle-Width="140px"/>
                
                <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteText="Xóa" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Center" />
            </Columns>
        </asp:GridView>
        </ul>
    </div>
</asp:Content>
